<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>500</title>
    <script src="<%=basePath%>static/js/jquery.min.js"></script>
    <script src="<%=basePath%>static/layui/layui.js"></script>

    <link href="https://cdn.bootcss.com/layer/3.1.0/theme/default/layer.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
    <script src="https://cdn.bootcss.com/layer/3.1.0/layer.js"></script>
</head>
<body>
<%--<div style="text-align: center; padding:11% 0;">--%>
    <%--<i class="layui-icon" style="line-height:20rem; font-size:20rem; color: #393D50;">500</i>--%>
    <%--<p style="font-size: 20px; font-weight: 300; color: #999;">页面出错了，请重新登录!</p>--%>
<%--</div>--%>
</body>

<script>
    layui.use('layer', function(){
        var layer = layui.layer ;
        layer.msg('您的登录已过期，请重新登录',{
            icon: 1,
            time: 2000 //2秒关闭（如果不配置，默认是3秒）
        },function () {
            // 第一种方式
            // window.parent.location.href="/user/tologin";
            //第二种方式
            window.parent.location.href="/login.jsp";
        });
    });
</script>
</html>
